#ifndef PARSER_H_INCLUDED
#define PARSER_H_INCLUDED

//ITEMS
struct items{
	char *name;
	int attack;
	int defense;
};

typedef struct items item_t;
void parseItems(item_t *itemList);
item_t getItem(int position);
//ITEMS

//BOXES
struct boxes{
    item_t item[5];
    bool key;
};

typedef struct boxes box_t;
void parseBoxes(box_t *boxList);
box_t getBox(int position);
//BOXES

//ENEMIES
struct enemy{
    char *name;
    int life;
    int powerMax;
    int powerMin;
};

typedef struct enemy enemy_t;

void parseEnemies(enemy_t *enemyList);
enemy_t getEnemy(int position);
//ENEMIES

//ROOMS
struct rooms{
    char here[3];
    char *mov[4];
    box_t objects;
    bool block;
    char *message;
    enemy_t enemy;
};
typedef struct rooms room_t;
void parseRooms(int width, int height, room_t *rooms);
//ROOMS

#endif // PARSER_H_INCLUDED
